package com.hexinfo.dmpro.xxljob.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hexinfo.dmpro.common.utils.CommonConstants;
import com.hexinfo.dmpro.xxljob.dao.JobContactMapper;
import com.hexinfo.dmpro.xxljob.model.JobContact;
import com.hexinfo.dmpro.xxljob.service.JobContactService;
import org.springframework.stereotype.Service;

/**
 * 调度任务记录表
 *
 * @author zhou
 * @date 2023-09-08 10:45:22
 */
@Service
public class JobContactServiceImpl extends ServiceImpl<JobContactMapper, JobContact> implements JobContactService {

    @Override
    public Page queryList(Page page, JobContact jobContact) {
        LambdaQueryWrapper<JobContact> wrapper = Wrappers.lambdaQuery();
        wrapper.select().eq(JobContact::getDel,CommonConstants.STATUS_NORMAL);
        Page returnPage = this.baseMapper.selectPage(page, wrapper);
        return returnPage;
    }
}
